﻿/**  版本信息模板在安装目录下，可自行修改。
* V_Goods.cs
*
* 功 能： N/A
* 类 名： V_Goods
*
* Ver    变更日期             负责人  变更内容
* ───────────────────────────────────
* V0.01  2014/2/28 18:02:03   N/A    初版
*
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
*┌──────────────────────────────────┐
*│　此技术信息为本公司机密信息，未经本公司书面同意禁止向第三方披露．　│
*│　版权所有：动软卓越（北京）科技有限公司　　　　　　　　　　　　　　│
*└──────────────────────────────────┘
*/
using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using Maticsoft.DBUtility;//Please add references
namespace BBPA.DAL
{
	/// <summary>
	/// 数据访问类:V_Goods
	/// </summary>
	public partial class V_Goods
	{
		public V_Goods()
		{}
		#region  BasicMethod



		/// <summary>
		/// 增加一条数据
		/// </summary>
		public bool Add(BBPA.Model.V_Goods model)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("insert into V_Goods(");
			strSql.Append("id,CategoryID,Name,ShotrName,Code,Description,Dateandtime,BuyPrice,SellPrice,IsPromo,IsOffShelf,CategoryID_Tree,BrandID,CategoryName,BrandName,Number,SupplierID,SupplierName,SupplierShortName,SupplierNumber,State,PicID,PicURL,PicWidth,PicHeight,PicTitle,Rank,HandRank,CategoryNumber,SuggestStorePrice,IsLatePay,ComeFrom,IsDelivery,Tel,Mobile)");
			strSql.Append(" values (");
			strSql.Append("@id,@CategoryID,@Name,@ShotrName,@Code,@Description,@Dateandtime,@BuyPrice,@SellPrice,@IsPromo,@IsOffShelf,@CategoryID_Tree,@BrandID,@CategoryName,@BrandName,@Number,@SupplierID,@SupplierName,@SupplierShortName,@SupplierNumber,@State,@PicID,@PicURL,@PicWidth,@PicHeight,@PicTitle,@Rank,@HandRank,@CategoryNumber,@SuggestStorePrice,@IsLatePay,@ComeFrom,@IsDelivery,@Tel,@Mobile)");
			SqlParameter[] parameters = {
					new SqlParameter("@id", SqlDbType.Int,4),
					new SqlParameter("@CategoryID", SqlDbType.Int,4),
					new SqlParameter("@Name", SqlDbType.NVarChar,50),
					new SqlParameter("@ShotrName", SqlDbType.NVarChar,50),
					new SqlParameter("@Code", SqlDbType.VarChar,50),
					new SqlParameter("@Description", SqlDbType.Text),
					new SqlParameter("@Dateandtime", SqlDbType.DateTime),
					new SqlParameter("@BuyPrice", SqlDbType.Money,8),
					new SqlParameter("@SellPrice", SqlDbType.Money,8),
					new SqlParameter("@IsPromo", SqlDbType.Bit,1),
					new SqlParameter("@IsOffShelf", SqlDbType.Bit,1),
					new SqlParameter("@CategoryID_Tree", SqlDbType.VarChar,200),
					new SqlParameter("@BrandID", SqlDbType.Int,4),
					new SqlParameter("@CategoryName", SqlDbType.NVarChar,50),
					new SqlParameter("@BrandName", SqlDbType.NVarChar,50),
					new SqlParameter("@Number", SqlDbType.VarChar,50),
					new SqlParameter("@SupplierID", SqlDbType.Int,4),
					new SqlParameter("@SupplierName", SqlDbType.NVarChar,50),
					new SqlParameter("@SupplierShortName", SqlDbType.NVarChar,50),
					new SqlParameter("@SupplierNumber", SqlDbType.NVarChar,50),
					new SqlParameter("@State", SqlDbType.TinyInt,1),
					new SqlParameter("@PicID", SqlDbType.Int,4),
					new SqlParameter("@PicURL", SqlDbType.NVarChar,500),
					new SqlParameter("@PicWidth", SqlDbType.Int,4),
					new SqlParameter("@PicHeight", SqlDbType.Int,4),
					new SqlParameter("@PicTitle", SqlDbType.NVarChar,200),
					new SqlParameter("@Rank", SqlDbType.Int,4),
					new SqlParameter("@HandRank", SqlDbType.Int,4),
					new SqlParameter("@CategoryNumber", SqlDbType.VarChar,50),
					new SqlParameter("@SuggestStorePrice", SqlDbType.Money,8),
					new SqlParameter("@IsLatePay", SqlDbType.Bit,1),
					new SqlParameter("@ComeFrom", SqlDbType.TinyInt,1),
					new SqlParameter("@IsDelivery", SqlDbType.Bit,1),
					new SqlParameter("@Tel", SqlDbType.NVarChar,50),
					new SqlParameter("@Mobile", SqlDbType.VarChar,50)};
			parameters[0].Value = model.id;
			parameters[1].Value = model.CategoryID;
			parameters[2].Value = model.Name;
			parameters[3].Value = model.ShotrName;
			parameters[4].Value = model.Code;
			parameters[5].Value = model.Description;
			parameters[6].Value = model.Dateandtime;
			parameters[7].Value = model.BuyPrice;
			parameters[8].Value = model.SellPrice;
			parameters[9].Value = model.IsPromo;
			parameters[10].Value = model.IsOffShelf;
			parameters[11].Value = model.CategoryID_Tree;
			parameters[12].Value = model.BrandID;
			parameters[13].Value = model.CategoryName;
			parameters[14].Value = model.BrandName;
			parameters[15].Value = model.Number;
			parameters[16].Value = model.SupplierID;
			parameters[17].Value = model.SupplierName;
			parameters[18].Value = model.SupplierShortName;
			parameters[19].Value = model.SupplierNumber;
			parameters[20].Value = model.State;
			parameters[21].Value = model.PicID;
			parameters[22].Value = model.PicURL;
			parameters[23].Value = model.PicWidth;
			parameters[24].Value = model.PicHeight;
			parameters[25].Value = model.PicTitle;
			parameters[26].Value = model.Rank;
			parameters[27].Value = model.HandRank;
			parameters[28].Value = model.CategoryNumber;
			parameters[29].Value = model.SuggestStorePrice;
			parameters[30].Value = model.IsLatePay;
			parameters[31].Value = model.ComeFrom;
			parameters[32].Value = model.IsDelivery;
			parameters[33].Value = model.Tel;
			parameters[34].Value = model.Mobile;

			int rows=DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
			if (rows > 0)
			{
				return true;
			}
			else
			{
				return false;
			}
		}
		/// <summary>
		/// 更新一条数据
		/// </summary>
		public bool Update(BBPA.Model.V_Goods model)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("update V_Goods set ");
			strSql.Append("id=@id,");
			strSql.Append("CategoryID=@CategoryID,");
			strSql.Append("Name=@Name,");
			strSql.Append("ShotrName=@ShotrName,");
			strSql.Append("Code=@Code,");
			strSql.Append("Description=@Description,");
			strSql.Append("Dateandtime=@Dateandtime,");
			strSql.Append("BuyPrice=@BuyPrice,");
			strSql.Append("SellPrice=@SellPrice,");
			strSql.Append("IsPromo=@IsPromo,");
			strSql.Append("IsOffShelf=@IsOffShelf,");
			strSql.Append("CategoryID_Tree=@CategoryID_Tree,");
			strSql.Append("BrandID=@BrandID,");
			strSql.Append("CategoryName=@CategoryName,");
			strSql.Append("BrandName=@BrandName,");
			strSql.Append("Number=@Number,");
			strSql.Append("SupplierID=@SupplierID,");
			strSql.Append("SupplierName=@SupplierName,");
			strSql.Append("SupplierShortName=@SupplierShortName,");
			strSql.Append("SupplierNumber=@SupplierNumber,");
			strSql.Append("State=@State,");
			strSql.Append("PicID=@PicID,");
			strSql.Append("PicURL=@PicURL,");
			strSql.Append("PicWidth=@PicWidth,");
			strSql.Append("PicHeight=@PicHeight,");
			strSql.Append("PicTitle=@PicTitle,");
			strSql.Append("Rank=@Rank,");
			strSql.Append("HandRank=@HandRank,");
			strSql.Append("CategoryNumber=@CategoryNumber,");
			strSql.Append("SuggestStorePrice=@SuggestStorePrice,");
			strSql.Append("IsLatePay=@IsLatePay,");
			strSql.Append("ComeFrom=@ComeFrom,");
			strSql.Append("IsDelivery=@IsDelivery,");
			strSql.Append("Tel=@Tel,");
			strSql.Append("Mobile=@Mobile");
			strSql.Append(" where ");
			SqlParameter[] parameters = {
					new SqlParameter("@id", SqlDbType.Int,4),
					new SqlParameter("@CategoryID", SqlDbType.Int,4),
					new SqlParameter("@Name", SqlDbType.NVarChar,50),
					new SqlParameter("@ShotrName", SqlDbType.NVarChar,50),
					new SqlParameter("@Code", SqlDbType.VarChar,50),
					new SqlParameter("@Description", SqlDbType.Text),
					new SqlParameter("@Dateandtime", SqlDbType.DateTime),
					new SqlParameter("@BuyPrice", SqlDbType.Money,8),
					new SqlParameter("@SellPrice", SqlDbType.Money,8),
					new SqlParameter("@IsPromo", SqlDbType.Bit,1),
					new SqlParameter("@IsOffShelf", SqlDbType.Bit,1),
					new SqlParameter("@CategoryID_Tree", SqlDbType.VarChar,200),
					new SqlParameter("@BrandID", SqlDbType.Int,4),
					new SqlParameter("@CategoryName", SqlDbType.NVarChar,50),
					new SqlParameter("@BrandName", SqlDbType.NVarChar,50),
					new SqlParameter("@Number", SqlDbType.VarChar,50),
					new SqlParameter("@SupplierID", SqlDbType.Int,4),
					new SqlParameter("@SupplierName", SqlDbType.NVarChar,50),
					new SqlParameter("@SupplierShortName", SqlDbType.NVarChar,50),
					new SqlParameter("@SupplierNumber", SqlDbType.NVarChar,50),
					new SqlParameter("@State", SqlDbType.TinyInt,1),
					new SqlParameter("@PicID", SqlDbType.Int,4),
					new SqlParameter("@PicURL", SqlDbType.NVarChar,500),
					new SqlParameter("@PicWidth", SqlDbType.Int,4),
					new SqlParameter("@PicHeight", SqlDbType.Int,4),
					new SqlParameter("@PicTitle", SqlDbType.NVarChar,200),
					new SqlParameter("@Rank", SqlDbType.Int,4),
					new SqlParameter("@HandRank", SqlDbType.Int,4),
					new SqlParameter("@CategoryNumber", SqlDbType.VarChar,50),
					new SqlParameter("@SuggestStorePrice", SqlDbType.Money,8),
					new SqlParameter("@IsLatePay", SqlDbType.Bit,1),
					new SqlParameter("@ComeFrom", SqlDbType.TinyInt,1),
					new SqlParameter("@IsDelivery", SqlDbType.Bit,1),
					new SqlParameter("@Tel", SqlDbType.NVarChar,50),
					new SqlParameter("@Mobile", SqlDbType.VarChar,50)};
			parameters[0].Value = model.id;
			parameters[1].Value = model.CategoryID;
			parameters[2].Value = model.Name;
			parameters[3].Value = model.ShotrName;
			parameters[4].Value = model.Code;
			parameters[5].Value = model.Description;
			parameters[6].Value = model.Dateandtime;
			parameters[7].Value = model.BuyPrice;
			parameters[8].Value = model.SellPrice;
			parameters[9].Value = model.IsPromo;
			parameters[10].Value = model.IsOffShelf;
			parameters[11].Value = model.CategoryID_Tree;
			parameters[12].Value = model.BrandID;
			parameters[13].Value = model.CategoryName;
			parameters[14].Value = model.BrandName;
			parameters[15].Value = model.Number;
			parameters[16].Value = model.SupplierID;
			parameters[17].Value = model.SupplierName;
			parameters[18].Value = model.SupplierShortName;
			parameters[19].Value = model.SupplierNumber;
			parameters[20].Value = model.State;
			parameters[21].Value = model.PicID;
			parameters[22].Value = model.PicURL;
			parameters[23].Value = model.PicWidth;
			parameters[24].Value = model.PicHeight;
			parameters[25].Value = model.PicTitle;
			parameters[26].Value = model.Rank;
			parameters[27].Value = model.HandRank;
			parameters[28].Value = model.CategoryNumber;
			parameters[29].Value = model.SuggestStorePrice;
			parameters[30].Value = model.IsLatePay;
			parameters[31].Value = model.ComeFrom;
			parameters[32].Value = model.IsDelivery;
			parameters[33].Value = model.Tel;
			parameters[34].Value = model.Mobile;

			int rows=DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
			if (rows > 0)
			{
				return true;
			}
			else
			{
				return false;
			}
		}

		/// <summary>
		/// 删除一条数据
		/// </summary>
		public bool Delete()
		{
			//该表无主键信息，请自定义主键/条件字段
			StringBuilder strSql=new StringBuilder();
			strSql.Append("delete from V_Goods ");
			strSql.Append(" where ");
			SqlParameter[] parameters = {
			};

			int rows=DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
			if (rows > 0)
			{
				return true;
			}
			else
			{
				return false;
			}
		}


		/// <summary>
		/// 得到一个对象实体
		/// </summary>
		public BBPA.Model.V_Goods GetModel()
		{
			//该表无主键信息，请自定义主键/条件字段
			StringBuilder strSql=new StringBuilder();
			strSql.Append("select  top 1 id,CategoryID,Name,ShotrName,Code,Description,Dateandtime,BuyPrice,SellPrice,IsPromo,IsOffShelf,CategoryID_Tree,BrandID,CategoryName,BrandName,Number,SupplierID,SupplierName,SupplierShortName,SupplierNumber,State,PicID,PicURL,PicWidth,PicHeight,PicTitle,Rank,HandRank,CategoryNumber,SuggestStorePrice,IsLatePay,ComeFrom,IsDelivery,Tel,Mobile from V_Goods ");
			strSql.Append(" where ");
			SqlParameter[] parameters = {
			};

			BBPA.Model.V_Goods model=new BBPA.Model.V_Goods();
			DataSet ds=DbHelperSQL.Query(strSql.ToString(),parameters);
			if(ds.Tables[0].Rows.Count>0)
			{
				return DataRowToModel(ds.Tables[0].Rows[0]);
			}
			else
			{
				return null;
			}
		}


		/// <summary>
		/// 得到一个对象实体
		/// </summary>
		public BBPA.Model.V_Goods DataRowToModel(DataRow row)
		{
			BBPA.Model.V_Goods model=new BBPA.Model.V_Goods();
			if (row != null)
			{
				if(row["id"]!=null && row["id"].ToString()!="")
				{
					model.id=int.Parse(row["id"].ToString());
				}
				if(row["CategoryID"]!=null && row["CategoryID"].ToString()!="")
				{
					model.CategoryID=int.Parse(row["CategoryID"].ToString());
				}
				if(row["Name"]!=null)
				{
					model.Name=row["Name"].ToString();
				}
				if(row["ShotrName"]!=null)
				{
					model.ShotrName=row["ShotrName"].ToString();
				}
				if(row["Code"]!=null)
				{
					model.Code=row["Code"].ToString();
				}
				if(row["Description"]!=null)
				{
					model.Description=row["Description"].ToString();
				}
				if(row["Dateandtime"]!=null && row["Dateandtime"].ToString()!="")
				{
					model.Dateandtime=DateTime.Parse(row["Dateandtime"].ToString());
				}
				if(row["BuyPrice"]!=null && row["BuyPrice"].ToString()!="")
				{
					model.BuyPrice=decimal.Parse(row["BuyPrice"].ToString());
				}
				if(row["SellPrice"]!=null && row["SellPrice"].ToString()!="")
				{
					model.SellPrice=decimal.Parse(row["SellPrice"].ToString());
				}
				if(row["IsPromo"]!=null && row["IsPromo"].ToString()!="")
				{
					if((row["IsPromo"].ToString()=="1")||(row["IsPromo"].ToString().ToLower()=="true"))
					{
						model.IsPromo=true;
					}
					else
					{
						model.IsPromo=false;
					}
				}
				if(row["IsOffShelf"]!=null && row["IsOffShelf"].ToString()!="")
				{
					if((row["IsOffShelf"].ToString()=="1")||(row["IsOffShelf"].ToString().ToLower()=="true"))
					{
						model.IsOffShelf=true;
					}
					else
					{
						model.IsOffShelf=false;
					}
				}
				if(row["CategoryID_Tree"]!=null)
				{
					model.CategoryID_Tree=row["CategoryID_Tree"].ToString();
				}
				if(row["BrandID"]!=null && row["BrandID"].ToString()!="")
				{
					model.BrandID=int.Parse(row["BrandID"].ToString());
				}
				if(row["CategoryName"]!=null)
				{
					model.CategoryName=row["CategoryName"].ToString();
				}
				if(row["BrandName"]!=null)
				{
					model.BrandName=row["BrandName"].ToString();
				}
				if(row["Number"]!=null)
				{
					model.Number=row["Number"].ToString();
				}
				if(row["SupplierID"]!=null && row["SupplierID"].ToString()!="")
				{
					model.SupplierID=int.Parse(row["SupplierID"].ToString());
				}
				if(row["SupplierName"]!=null)
				{
					model.SupplierName=row["SupplierName"].ToString();
				}
				if(row["SupplierShortName"]!=null)
				{
					model.SupplierShortName=row["SupplierShortName"].ToString();
				}
				if(row["SupplierNumber"]!=null)
				{
					model.SupplierNumber=row["SupplierNumber"].ToString();
				}
				if(row["State"]!=null && row["State"].ToString()!="")
				{
					model.State=int.Parse(row["State"].ToString());
				}
				if(row["PicID"]!=null && row["PicID"].ToString()!="")
				{
					model.PicID=int.Parse(row["PicID"].ToString());
				}
				if(row["PicURL"]!=null)
				{
					model.PicURL=row["PicURL"].ToString();
				}
				if(row["PicWidth"]!=null && row["PicWidth"].ToString()!="")
				{
					model.PicWidth=int.Parse(row["PicWidth"].ToString());
				}
				if(row["PicHeight"]!=null && row["PicHeight"].ToString()!="")
				{
					model.PicHeight=int.Parse(row["PicHeight"].ToString());
				}
				if(row["PicTitle"]!=null)
				{
					model.PicTitle=row["PicTitle"].ToString();
				}
				if(row["Rank"]!=null && row["Rank"].ToString()!="")
				{
					model.Rank=int.Parse(row["Rank"].ToString());
				}
				if(row["HandRank"]!=null && row["HandRank"].ToString()!="")
				{
					model.HandRank=int.Parse(row["HandRank"].ToString());
				}
				if(row["CategoryNumber"]!=null)
				{
					model.CategoryNumber=row["CategoryNumber"].ToString();
				}
				if(row["SuggestStorePrice"]!=null && row["SuggestStorePrice"].ToString()!="")
				{
					model.SuggestStorePrice=decimal.Parse(row["SuggestStorePrice"].ToString());
				}
				if(row["IsLatePay"]!=null && row["IsLatePay"].ToString()!="")
				{
					if((row["IsLatePay"].ToString()=="1")||(row["IsLatePay"].ToString().ToLower()=="true"))
					{
						model.IsLatePay=true;
					}
					else
					{
						model.IsLatePay=false;
					}
				}
				if(row["ComeFrom"]!=null && row["ComeFrom"].ToString()!="")
				{
					model.ComeFrom=int.Parse(row["ComeFrom"].ToString());
				}
				if(row["IsDelivery"]!=null && row["IsDelivery"].ToString()!="")
				{
					if((row["IsDelivery"].ToString()=="1")||(row["IsDelivery"].ToString().ToLower()=="true"))
					{
						model.IsDelivery=true;
					}
					else
					{
						model.IsDelivery=false;
					}
				}
				if(row["Tel"]!=null)
				{
					model.Tel=row["Tel"].ToString();
				}
				if(row["Mobile"]!=null)
				{
					model.Mobile=row["Mobile"].ToString();
				}
                if (row["norm"] != null && row["norm"].ToString() != "")
                {
                    model.Norm = row["norm"].ToString();
                }
                if (row["normnum"] != null && row["normnum"].ToString() != "")
                {
                    model.Normnum = int.Parse(row["normnum"].ToString());
                }
                if (row["normtype"] != null && row["normtype"].ToString() != "")
                {
                    model.Normtype = row["normtype"].ToString();
                }
			}
			return model;
		}

		/// <summary>
		/// 获得数据列表
		/// </summary>
		public DataSet GetList(string strWhere)
		{
			StringBuilder strSql=new StringBuilder();
            strSql.Append("select id,CategoryID,Name,ShotrName,Code,Description,Dateandtime,BuyPrice,SellPrice,IsPromo,IsOffShelf,CategoryID_Tree,BrandID,CategoryName,BrandName,Number,SupplierID,SupplierName,SupplierShortName,SupplierNumber,State,PicID,PicURL,PicWidth,PicHeight,PicTitle,Rank,HandRank,CategoryNumber,SuggestStorePrice,IsLatePay,ComeFrom,IsDelivery,Tel,Mobile,norm,normnum,normtype ");
			strSql.Append(" FROM V_Goods ");
			if(strWhere.Trim()!="")
			{
				strSql.Append(" where "+strWhere);
			}
			return DbHelperSQL.Query(strSql.ToString());
		}

		/// <summary>
		/// 获得前几行数据
		/// </summary>
		public DataSet GetList(int Top,string strWhere,string filedOrder)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("select ");
			if(Top>0)
			{
				strSql.Append(" top "+Top.ToString());
			}
            strSql.Append(" id,CategoryID,Name,ShotrName,Code,Description,Dateandtime,BuyPrice,SellPrice,IsPromo,IsOffShelf,CategoryID_Tree,BrandID,CategoryName,BrandName,Number,SupplierID,SupplierName,SupplierShortName,SupplierNumber,State,PicID,PicURL,PicWidth,PicHeight,PicTitle,Rank,HandRank,CategoryNumber,SuggestStorePrice,IsLatePay,ComeFrom,IsDelivery,Tel,Mobile,norm,normnum,normtype ");
			strSql.Append(" FROM V_Goods ");
			if(strWhere.Trim()!="")
			{
				strSql.Append(" where "+strWhere);
			}
			strSql.Append(" order by " + filedOrder);
			return DbHelperSQL.Query(strSql.ToString());
		}

		/// <summary>
		/// 获取记录总数
		/// </summary>
		public int GetRecordCount(string strWhere)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("select count(1) FROM V_Goods ");
			if(strWhere.Trim()!="")
			{
				strSql.Append(" where "+strWhere);
			}
			object obj = DbHelperSQL.GetSingle(strSql.ToString());
			if (obj == null)
			{
				return 0;
			}
			else
			{
				return Convert.ToInt32(obj);
			}
		}
		/// <summary>
		/// 分页获取数据列表
		/// </summary>
		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("SELECT * FROM ( ");
			strSql.Append(" SELECT ROW_NUMBER() OVER (");
			if (!string.IsNullOrEmpty(orderby.Trim()))
			{
				strSql.Append("order by T." + orderby );
			}
			else
			{
				strSql.Append("order by T. desc");
			}
			strSql.Append(")AS Row, T.*  from V_Goods T ");
			if (!string.IsNullOrEmpty(strWhere.Trim()))
			{
				strSql.Append(" WHERE " + strWhere);
			}
			strSql.Append(" ) TT");
			strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
			return DbHelperSQL.Query(strSql.ToString());
		}

		/*
		/// <summary>
		/// 分页获取数据列表
		/// </summary>
		public DataSet GetList(int PageSize,int PageIndex,string strWhere)
		{
			SqlParameter[] parameters = {
					new SqlParameter("@tblName", SqlDbType.VarChar, 255),
					new SqlParameter("@fldName", SqlDbType.VarChar, 255),
					new SqlParameter("@PageSize", SqlDbType.Int),
					new SqlParameter("@PageIndex", SqlDbType.Int),
					new SqlParameter("@IsReCount", SqlDbType.Bit),
					new SqlParameter("@OrderType", SqlDbType.Bit),
					new SqlParameter("@strWhere", SqlDbType.VarChar,1000),
					};
			parameters[0].Value = "V_Goods";
			parameters[1].Value = "";
			parameters[2].Value = PageSize;
			parameters[3].Value = PageIndex;
			parameters[4].Value = 0;
			parameters[5].Value = 0;
			parameters[6].Value = strWhere;	
			return DbHelperSQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
		}*/

		#endregion  BasicMethod
		#region  ExtensionMethod

		#endregion  ExtensionMethod
	}
}

